<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
</head>
<body>
<h2>JavaScript 调用 Java</h2>
<button onclick="javaBridge.showMessage('Hello from JavaScript!')">点击调用 Java 方法</button>
</body>
<script>
    function callJava() {
        javaBridge.showMessage("JavaScript 触发 Java 方法!");
    }
</script>
</html>